package cn.edu.scau.cmi.wujiaxian.exercise9;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Example9_14 {
	

	public static void main(String[] args) {
		Date nowTime = new Date();
		System.out.println(nowTime);
		String pattern = "yyyy-MM-dd";
		SimpleDateFormat sdf = new SimpleDateFormat(pattern);
		String timePattern = sdf.format(nowTime);
		System.out.println(timePattern);
		pattern = "G yyyy年 MMM当日E HH时 mm分ss秒z";
		sdf = new SimpleDateFormat(pattern);
		timePattern = sdf.format(nowTime);
		System.out.println(timePattern);
		long time = System.currentTimeMillis();
		System.out.println(time);
	}
	
}
